
   var storeHerPr = new Ext.data.JsonStore({
        root: 'articles',
        fields: [
            'id', 'name'
        ],
        // load using script tags for cross domain, if the data in on the same domain as
        // this page, an HttpProxy would be better
        proxy: new Ext.data.HttpProxy({
            url: basePath+'/../herbServlet',
            doClass:'herPr',
            preName:{herId:herId}
        })
    });
    storeHerPr.setDefaultSort('name', 'desc');



    // create the Grid
    var gridHerPr = new Ext.grid.GridPanel({
        store: storeHerPr,
        shadow:true,
        autoScroll: true,
        bodyStyle:'width:100%;',
		autoWidth:true,
		autoExpandColumn:'name',
        border:false,
        columns: [
            {id:'AA',header: "ID号", width: 90,sortable: true, dataIndex: 'id',hidden:true},
            {header: "方剂名称", width: 700, sortable: true, dataIndex: 'name',id:'name'}
        ],
         iconCls:'icon-grid',
         height:500
    });

    gridHerPr.render('gridHerPr');
    storeHerPr.load({params:{doClass:'herPr',herId:herId}});